<%--
    author: Ivan Holub
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Administration</title>
</head>
<body>

<jsp:include page="header.jsp"/>

<h3>Artists</h3>

<p><a href="/admin/newArtist/">New Artist</a></p>

<table>
    <tr>
        <td>Name</td>
        <td colspan="3"></td>
    </tr>
    <c:forEach items="${list}" var="artist">
        <tr>
            <td><c:out value="${artist.name}"/></td>
            <td><a href="/admin/artistDetails/?id=${artist.id}">view</a></td>
            <td><a href="/admin/editArtist/?id=${artist.id}">edit</a></td>
            <td><a href="/admin/deleteArtist/?id=${artist.id}">delete</a></td>
        </tr>
    </c:forEach>
</table>

<jsp:include page="footer.jsp"/>

</body>
</html>